/* Forms.scss
 * Base styles for various input types, form layouts, and states
 * ------------------------------------------------------------- */
.content-column form {
  margin-bottom: 1.4em;
}

fieldset {
  border: 1px solid #ccc;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  -o-border-radius: 3px;
  -ms-border-radius: 3px;
  -khtml-border-radius: 3px;
  border-radius: 3px;
  position: relative;
  margin-bottom: 1.4em;
  max-width: 100%;
}
fieldset.filter-wrapper {
  margin-bottom: 1.4em;
}
fieldset legend {
  top: 10px;
  left: 10px;
  display: block;
  line-height: 1;
  padding: 0 0.5em;
}
fieldset legend a {
  text-decoration: none;
}
fieldset legend a:before {
  content: '- ';
}
fieldset.collapsed legend a:before {
  content: '+ ';
}

.fieldset-wrapper {
  padding: 10px;
}

.form-item {
  margin-bottom: 1.4em;
  max-width: 100%;
}

html.js input.form-autocomplete {
  background-position: 100% 5px;
}

.form-radios .form-item,
.form-checkboxes .form-item {
  margin-bottom: 0.4em;
}

label {
  line-height: 1.4em;
  display: block;
  font-weight: bold;
}

label.option {
  display: inline;
}

label,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
  max-width: 100%;
}

input,
textarea,
select,
.button {
  padding: 4px;
  line-height: 1.4em;
  border: 1px solid #ccc;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

input[type=checkbox],
input[type=radio] {
  cursor: pointer;
  width: auto;
  height: auto;
  padding: 0;
  margin: -2px 0 0 0;
  border: none;
}

input[type=file] {
  background-color: #fff;
  padding: initial;
  border: initial;
  line-height: initial;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  -o-box-shadow: none;
  box-shadow: none;
}

select,
input[type=file] {
  max-width: 100%;
  height: 2em;
  line-height: 1.4em;
  *margin-top: 4px;
  /* For IE7, add top margin to align select with labels */
}

select[multiple] {
  height: inherit;
}

textarea {
  height: auto;
}

input,
textarea,
a.button {
  -moz-transition: border linear 0.2s, background-color linear 0.2s;
  -webkit-transition: border linear 0.2s, background-color linear 0.2s;
  -o-transition: border linear 0.2s, background-color linear 0.2s;
  transition: border linear 0.2s, background-color linear 0.2s;
  -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  -o-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  -o-border-radius: 3px;
  -ms-border-radius: 3px;
  -khtml-border-radius: 3px;
  border-radius: 3px;
  background-color: #fff;
}

input:focus,
textarea:focus {
  outline: 0;
  border-color: #bbb;
  background-color: #fafafa;
}

input[type=file]:focus,
input[type=checkbox]:focus,
select:focus {
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  -o-box-shadow: none;
  box-shadow: none;
  outline: 1px dotted #666;
}

input[type=button],
input[type=reset],
input[type=submit],
button,
input.form-submit,
.form-actions a,
.form-actions a:visited,
.button {
  width: auto;
  height: auto;
  margin: 1.4em 6px 0 0;
  padding: 6px 12px 6px 12px;
  cursor: pointer;
  background-color: #fff;
  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0.1)));
  background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
  background-image: -moz-linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
  background-image: -o-linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
  background-image: -ms-linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
  -moz-box-shadow: rgba(255, 255, 255, 0.75) 0 0 0 1px inset;
  -webkit-box-shadow: rgba(255, 255, 255, 0.75) 0 0 0 1px inset;
  -o-box-shadow: rgba(255, 255, 255, 0.75) 0 0 0 1px inset;
  box-shadow: rgba(255, 255, 255, 0.75) 0 0 0 1px inset;
  background-repeat: no-repeat;
  border-color: #ccc;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  -o-border-radius: 4px;
  -ms-border-radius: 4px;
  -khtml-border-radius: 4px;
  border-radius: 4px;
  line-height: 1em;
  word-wrap: normal;
  overflow: visible;
}
input[type=button]:hover, input[type=button]:focus,
input[type=reset]:hover,
input[type=reset]:focus,
input[type=submit]:hover,
input[type=submit]:focus,
button:hover,
button:focus,
input.form-submit:hover,
input.form-submit:focus,
.form-actions a:hover,
.form-actions a:focus,
.form-actions a:visited:hover,
.form-actions a:visited:focus,
.button:hover,
.button:focus {
  background-position: 0 10px;
  border-color: #dadada;
}

.container-inline input[type=button],
.container-inline input[type=reset],
.container-inline input[type=submit],
.container-inline button,
.container-inline input.form-submit,
.container-inline .form-actions a,
.container-inline .form-actions a:visited {
  margin-top: 0;
}

input[disabled],
select[disabled],
textarea[disabled],
input[readonly],
select[readonly],
textarea[readonly] {
  background-color: #f5f5f5;
  border-color: #ddd;
  cursor: not-allowed;
}

.description {
  font-size: 11px;
  line-height: 1.4em;
}

form .error {
  border: 1px solid #cc0000;
}

.block-inline-form form input {
  display: block;
  float: left;
  font-size: 1.3em;
  padding: 0.7em;
}
.block-inline-form form input[type=text], .block-inline-form form input.form-text {
  width: 65%;
  margin: 0;
  border-right: 0;
  -moz-border-radius: 5px 0 0 5px;
  -webkit-border-radius: 5px 0 0 5px;
  -o-border-radius: 5px 0 0 5px;
  -ms-border-radius: 5px 0 0 5px;
  -khtml-border-radius: 5px 0 0 5px;
  border-radius: 5px 0 0 5px;
}
.block-inline-form form input[type=submit], .block-inline-form form input.form-submit {
  width: 35%;
  margin: 0;
  border-left: 0;
  -moz-border-radius: 0 5px 5px 0;
  -webkit-border-radius: 0 5px 5px 0;
  -o-border-radius: 0 5px 5px 0;
  -ms-border-radius: 0 5px 5px 0;
  -khtml-border-radius: 0 5px 5px 0;
  border-radius: 0 5px 5px 0;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  -o-box-shadow: none;
  box-shadow: none;
}
